<%= acts_as_runnable_code_syntax_highlight_for("CodeFile", :controller => "syntax_highlight", :lang => @code_file.view? ? "rhtml" : "ruby") %>

<p>
  <b>Name</b><br />
  <%= f.text_field :name %>
</p>

<p>
  <b>View</b><br />
  <%= f.check_box :view %>
</p>

<p>
  <b>Code</b><br />
    <%= f.text_area :code, :rows => 20, :cols => 120, :class => "codepress ruby linenumbers-off" %><br/>
	<%= check_box_tag "codepress_box", "1", true, :onchange => "code_file_code.toggleEditor();" %> Use Codepress Syntax Highlighting
  </p>

<%= f.hidden_field :code, :id => "code_file_code_hidden"  %>
